<template>
	<view>
		<search-component ref="search_view" :tabList="tabList" v-model="currentClass" @searchConfirm="searchConfirm">
		</search-component>
		<view v-for="(item, index) in dataList" :key="index">
			<library-item :item="item"></library-item>
		</view>
		<sww-load-more :params="dataListParams"></sww-load-more>
		<sww-login></sww-login>
	</view>
</template>

<script>
	import {
		comSearch
	} from './mixin/comSearch.js';
	import library from '@/pagecomponents/articleLibrary/index.vue'
	import searchComponent from './mixin/searchComponent.vue';
	export default {
		mixins: [comSearch],
		data() {
			return {
				parentClass: -1, // 上级分类
				currentClass: -1, // 当前搜索的分类id
				classType: 21, // 分类类型,没有分类就为null
				searchClasskey: 'common_type',
				listApi: 'GetInfotainmentList',
				title: '素材专区'
			};
		},
		components: {
			'library-item': library,
			'search-component': searchComponent
		},
		methods: {
			filterParameter() {
				this.parameter.type = 3
			}
		}
	};
</script>

<style lang="scss">
	page {
		background-color: #fff;
	}
</style>
<style scoped lang="scss"></style>
